<?php

use Workerman\Worker;
use GatewayWorker\BusinessWorker;

$worker = new BusinessWorker();

$worker->name = 'ChatWorker';

$worker->eventHandler = '\chat\Events';

$worker->count = 4;
// 注册地址.
$worker->registerAddress = '0.0.0.0:1236';

if(!defined('GLOBAL_START'))
{
    Worker::runAll();
}